<?if(!defined("B_PROLOG_INCLUDED")||B_PROLOG_INCLUDED!==true)die();?>

<?
if (is_array($arResult["ERRORS"]) && count ($arResult["ERRORS"]) > 0)
{
	foreach($arResult["ERRORS"] as $error)
		echo '<span class="error">'.$error.'</span><br>';
}

$form_name = (strlen($arResult["AUTHOR"]["NAME"]) > 0) ? $arResult["AUTHOR"]["NAME"] : "Enter your name";
?>
<div id="cons_enter_container">
	<form method="post">
	<input type="text" class="textbox" name="cons_name" id="cons_name" value="<?=$form_name?>" onblur="OnBlurHandle(this, '<?=$form_name?>')" onclick="OnClilckHandle(this, '<?=$form_name?>');"> <br />
	
	<?if ($arParams["NEED_REGISTER"]):?>
		<?if ($arParams["USE_CAPTCHA"] == "Y"):?>
			<div style="display:block;">
				<input type="hidden" name="captcha_sid" value="<?=$arParams["CAPTCHA_CODE"]?>">
				<input type="text" class="textbox" name="captcha_word" value="Enter captcha code" onblur="OnBlurHandle(this, 'Enter captcha code')" onclick="OnClilckHandle(this, 'Enter captcha code');">
				<img src="/bitrix/tools/captcha.php?captcha_sid=<?=$arParams["CAPTCHA_CODE"]?>" width="180" height="40" alt="CAPTCHA">
			</div>
		<?endif;?>
	<?endif;?>
	<?if (!$arParams["NEED_REGISTER"]):?>
		<input type="checkbox" id="remove" name="remove" checked><label for="remove">Start new discuss</label><br />
	<?endif;?>
	<?=bitrix_sessid_post()?>
	<input type="submit" value="Enter" class="enter-button" name="submit">
	
	</form>
</div>
